package test1;

import java.text.NumberFormat;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-23
 * Time: 8:33
 */
public class DecF {
    public String checkDoubleFormat(double money) {
        NumberFormat df=NumberFormat.getNumberInstance() ;
        df.setMaximumFractionDigits(2);
        return df.format(money);
    }
}
